capture log close
log using "isq_placebo.log", replace text


//  program:    isq_placebo.do
//  task:      	placebo test
//  project:    poladopt



//  #0

version 14
set linesize 80
clear all
macro drop _all
set more off
set matsize 11000 



//  #1
//  load data

use "isq_poladopt_placebo.dta", clear


//  #2
//  placebo test

local base ln_rgdpch_pwt71 grgdpchtl_pwt71 crisis_lv_B totfinasset_gfddV6 ///
	L_dpi12 OC_dpi12 imf_prgf5 imf_eff5 imf_sba5 
	
eststo : logit next3Nrbrk `base' c.polity2_polV2##c.society i.year i.cid 
	testparm c.polity2_polV2##c.society
	estadd scalar jtsig =`r(p)'

eststo : xtlogit next3Nrbrk `base' c.polity2_polV2##c.society i.year , re
	testparm c.polity2_polV2##c.society
	estadd scalar jtsig =`r(p)'	
	
eststo : logit next3Nrbrk `base' c.libdem_vdem71##c.society i.year i.cid 
	testparm c.polity2_polV2##c.society
	estadd scalar jtsig =`r(p)'

eststo : xtlogit next3Nrbrk `base' c.libdem_vdem71##c.society i.year , re
	testparm c.polity2_polV2##c.society
	estadd scalar jtsig =`r(p)'	
	
	
esttab using isq_placebo.csv , replace nobase /// 
	b(3) se(3) drop(*cid* *year*) ///
	scalars("N N" "ll LogLikelihood" "chi2_c C2" "jtsig JointSig") ///
	sfmt(%12.0f %12.3f) obslast  ///
	star(* .1 ** .05 *** .01)
est clear


log close
clear
exit
